package com.zmzncs.lmtc.module.customer.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zmzncs.lmtc.module.customer.pojo.card_record_park.CardRecordPark;
import com.zmzncs.lmtc.module.customer.dao.CardRecordParkDao;
import com.zmzncs.lmtc.module.customer.pojo.card_record_park.CardRecordParkDTO;
import com.zmzncs.lmtc.module.customer.service.CardRecordParkService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 任建波
 * @since 2020-09-09
 */
@Service
public class CardRecordParkServiceImpl extends ServiceImpl<CardRecordParkDao, CardRecordPark> implements CardRecordParkService {

    @Autowired
    CardRecordParkDao cardRecordParkDao;

    /**
     * 获取时长卡购买记录关联的停车场
     */
    @Override
    public IPage<CardRecordParkDTO> getDurationCardRecordParkList(Page page, Integer cardRecordId, String keyword) {
        IPage<CardRecordParkDTO> cardRecordParkPage = cardRecordParkDao.getDurationCardRecordParkList(page, cardRecordId, keyword);
        return cardRecordParkPage;
    }

}
